
addpath(genpath(pwd));

IF_SERVER = 1;

if IF_SERVER
    root = '../_FGS/';
else
    root = '../../_FGS/';
end
    

score_root = 'recommendation_output/';

res_root = 'res_pool/';

msk_root = 'msk_fg/';

data_set_name = 'ALL';

feature_code = 'l';

global_n = 10;

if(length(data_set_name)>0)
    global_prefix = [data_set_name '_'];
else
    global_prefix = [];
end

data_base_save_name = [global_prefix 'data_base'];

score_root = [ '../' root score_root];
res_root = ['../' root res_root];
msk_root = ['../' root msk_root];

if 0

    data_base{1}.name = 'GOPR2384_cab';
    data_base{2}.name = 'GOPR2382_cab';
    data_base{3}.name = 'GOPR2393_cab';

    data_base{1}.start = 175;
    data_base{2}.start = 150;
    data_base{3}.start = 20;

    data_base{1}.end = 11150;
    data_base{2}.end = 5300;
    data_base{3}.end = 3100;

    data_base{1}.rate = 25;
    data_base{2}.rate = 50;
    data_base{3}.rate = 20;
else
    data_base{1}.name = 'P_01';
    data_base{2}.name = 'P_02';
    data_base{3}.name = 'P_03';
    data_base{4}.name = 'P_04';
    data_base{5}.name = 'P_05';
    data_base{6}.name = 'P_06';
    data_base{7}.name = 'GOPR2384_cab';
    data_base{8}.name = 'GOPR2393_cab';
    data_base{9}.name = 'no1';
    data_base{10}.name = 'no2';
    data_base{11}.name = 'no3';
    data_base{12}.name = 'no4';
    data_base{13}.name = 'no5';
    

    data_base{1}.start = 250;
    data_base{2}.start = 2000;
    data_base{3}.start = 1000;
    data_base{4}.start = 1000;
    data_base{5}.start = 1000;
    data_base{6}.start = 1000;
    data_base{7}.start = 175;
    data_base{8}.start = 20;
    data_base{9}.start = 320;
    data_base{10}.start = 300;
    data_base{11}.start = 400;
    data_base{12}.start = 340;
    data_base{13}.start = 440;

    data_base{1}.end = 53750;
    data_base{2}.end = 85000;
    data_base{3}.end = 71000;
    data_base{4}.end = 47000;
    data_base{5}.end = 44000;
    data_base{6}.end = 46000;
    data_base{7}.end = 11150;
    data_base{8}.end = 3100;
    data_base{9}.end = 9280;
    data_base{10}.end = 8700;
    data_base{11}.end = 11200;
    data_base{12}.end = 9860;
    data_base{13}.end = 12760;
    

    data_base{1}.rate = 250;
    data_base{2}.rate = 1000;
    data_base{3}.rate = 1000;
    data_base{4}.rate = 1000;
    data_base{5}.rate = 1000;
    data_base{6}.rate = 1000;
    data_base{7}.rate = 25;
    data_base{8}.rate = 20;
    data_base{9}.rate = 320;
    data_base{10}.rate = 300;
    data_base{11}.rate = 400;
    data_base{12}.rate = 340;
    data_base{13}.rate = 440;        
end